import koi from "@/utils/axios.ts";

export const listPage = (params: any) => koi.get("/app/agent/admin/agent-rule/list", params);
export const add = (params: any) => koi.post("/app/agent/admin/agent-rule/add", params);
export const update = (params: any) => koi.post("/app/agent/admin/agent-rule/update", params);
export const read = (id: any) => koi.get("/app/agent/admin/agent-rule/read", { id });
export const changeStatus = (id: any, status: any) => koi.post("/app/agent/admin/agent-rule/changeStatus", { id, status });
export const getAllRules = () => koi.post("/app/agent/admin/agent-rule/getAllRules");
